var e = require;
var t = module;
var o = exports;
Object.defineProperty(o, "__esModule", {value: !0});
var n = e("BaseModuleUI"),
    a = e("NotifyEventType"),
    i = e("GlobalParams"),
    r = e("UIManager"),
    s = e("GetZsViewUI"),
    l = cc._decorator,
    c = l.ccclass,
    d = l.property,
    h = (function (e) {
        function t() {
            var t = (null !== e && e.apply(this, arguments)) || this;
            return (t.taste_card_num_label = null), t;
        }
        return (
            __extends(t, e),
            (t.prototype.initView = function () {
                this.showCoinInfo();
            }),
            (t.prototype.addEvent = function () {
                this.attachEvent(a.default.UPDATE_HAVE_TASTE_CARD_NUMBER, this.showCoinInfo, this);
            }),
            (t.prototype.showCoinInfo = function () {
                var e = i.GlobalParams.playerSkinInfo.value;
                this.taste_card_num_label.string = e.have.taste_card;
            }),
            (t.prototype.showVideoView = function () {
                cc.find("UIManager")
                    .getComponent(r.default)
                    .showPopup("GetZsViewUI", function (e) {
                        e.getComponent(s.default).showPopupInfoView(2);
                    });
            }),
            __decorate([d(cc.Label)], t.prototype, "taste_card_num_label", void 0),
            __decorate([c], t)
        );
    })(n.default);
o.default = h;
